home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / libs / readline / makefile < prev    next >
Makefile  |  1996-12-14  |  3KB  |  91 lines

  1. #
  2. # Makefile
  3. #   Copyright (C) 1990, 1991, 1992 Free Software Foundation
  4. #
  5. # This file is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  16. #
  17.  
  18. #
  19. # Makefile for readline and history libraries.
  20. #
  21.  
  22. # Modified by Klaus Gebhardt, 1995
  23.  
  24. CC = gcc $(CFLAGS)
  25.  
  26. %.o : %.c ; $(CC) -c $< -o $@
  27. %.obj : %.c ; $(CC) -c $< -o $@ -Zomf
  28.  
  29. %.imp : %.def ; emximp -o $@ $<
  30. %.a : %.imp ; emximp -o $@ $<
  31. %.lib : %.imp ; emximp -o $@ $<
  32.  
  33. READLINE_DEFINES = -DHAVE_CONFIG_H
  34. OFLAGS = -m486 -O3 -malign-loops=2 -malign-jumps=2 -malign-functions=2 
  35. DEBUG_FLAGS = $(OFLAGS) -mprobe -DOS2
  36. INCL_FLAGS = -I.
  37. CFLAGS = $(DEBUG_FLAGS) $(LOCAL_INCLUDES) $(INCL_FLAGS) $(READLINE_DEFINES)
  38. LIBS = -lxmalloc -ltermcap
  39. ZFLAGS = -Zdll -Zomf -Zcrtdll
  40.  
  41. CSOURCES = readline.c funmap.c keymaps.c vi_mode.c parens.c search.c \
  42.     rltty.c complete.c bind.c isearch.c display.c signals.c \
  43.     emacs_keymap.c vi_keymap.c history.c tilde.c setctype.c
  44.  
  45. HSOURCES1 = readline.h keymaps.h chardefs.h
  46. HSOURCES2 = rldefs.h history.h tilde.h
  47. HSOURCES = $(HSOURCES1) $(HSOURCES2)
  48.  
  49. EXEDEP = readline.c xmalloc.obj readline.lib
  50.  
  51. OBJECTS = readline.obj vi_mode.obj funmap.obj keymaps.obj parens.obj \
  52.     search.obj rltty.obj complete.obj bind.obj isearch.obj display.obj \
  53.     setctype.obj signals.obj history.obj tilde.obj
  54.  
  55. all: readline.a readline.lib readline.dll
  56.  
  57. readline.imp: readline.def
  58. readline.a: readline.imp
  59. readline.lib: readline.imp
  60.  
  61. readline.dll: readline.def $(OBJECTS)
  62.     gcc -o readline.dll readline.def $(OBJECTS) $(LIBS) $(ZFLAGS)
  63.  
  64. install: all
  65.     cp readline.a readline.lib ../lib
  66.     cp readline.h keymaps.h chardefs.h history.h tilde.h ../include
  67.     cd doc & make install & cd ..
  68.     cp readline.dll h:/bin/dll
  69.  
  70. bind.obj: bind.c $(HSOURCES1) history.h rldefs.h 
  71. complete.obj: complete.c $(HSOURCES1) rldefs.h 
  72. display.obj: display.c rldefs.h readline.h keymaps.h chardefs.h history.h 
  73. funmap.obj: funmap.c $(HSOURCES1)
  74. history.obj: history.c history.h chardefs.h 
  75. isearch.obj: isearch.c readline.h keymaps.h chardefs.h history.h 
  76. keymaps.obj: keymaps.c emacs_keymap.c vi_keymap.c $(HSOURCES1)
  77. parens.obj: parens.c readline.h keymaps.h chardefs.h 
  78. readline.obj: readline.c $(HSOURCES1) history.h rldefs.h cursor.h
  79. rltty.obj: rltty.c rldefs.h readline.h keymaps.h chardefs.h 
  80. search.obj: search.c readline.h keymaps.h chardefs.h history.h 
  81. setctype.obj: setctype.c cursor.h
  82. signals.obj: signals.c rldefs.h readline.h keymaps.h chardefs.h history.h 
  83. tilde.obj: tilde.c tilde.h chardefs.h 
  84. vi_mode.obj: vi_mode.c rldefs.h readline.h keymaps.h chardefs.h history.h 
  85. xmalloc.obj: xmalloc.c
  86.  
  87. clean :
  88.     rm -f *.a *.lib *.obj *.dll *.exe
  89.